/*
 * TextResource.cpp
 *
 *  Created on: Jul 28, 2013
 *      Author: zapmunk
 */

#include "headerstop.h"

#include "TextResource.h"

using std::string;

string TextResource::getText() const throw(RESOURCE_ERROR) {
	if (isLoaded()) {
		return string(data, size);
	} else throw ERROR_NOT_LOADED;
}
